
(function () {
    'use strict';

    CKEDITOR.plugins.add('filefinder', {
        lang: 'en,zh-cn',
        // jscs:enable maximumLineLength
        icons: 'filefinder', // %REMOVE_LINE_CORE%
        hidpi: false, // %REMOVE_LINE_CORE% 
        init: function (editor) {

            editor.addCommand('filefinder', {
                exec: function (editor) {
                    abp.event.trigger('abp.ckeditor.filefinder', { editor:editor, multiSelect: true, canUploadImg: true, callback: null });
                }
            });

            if (editor.ui.addButton) {
                editor.ui.addButton('Filefinder', {
                    label: editor.lang.filefinder.labelName,
                    command: 'filefinder',
                    toolbar: 'insert,10',
                });
            }
        }
    });
})();

